package com.xjy.system.mapper;

import com.xjy.common.core.mybatisplus.core.BaseMapperPlus;
import com.xjy.system.domain.SysUserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户与角色关联表 数据层
 *
 * @author xjy
 */
public interface SysUserRoleMapper extends BaseMapperPlus<SysUserRole> {
	@Select("SELECT role_id FROM `sys_user_role` where user_id = #{id}")
	SysUserRole queryById(Long userId);


}
